package com.guo.hui.eurekaconsumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName EurekaDemoClient
 * @Description TODO
 * @Author zhengguohui
 * @Date 2018/7/18 11:03
 */
@FeignClient("eureka-client")
@Component
public interface EurekaDemoClient {
    /**
     * 参数如果不指定传输不成功,接收值为空
     */
    @GetMapping("/hello")
    String hello(@RequestParam("name") String name);

    @GetMapping("/world")
    String world(@RequestParam("name") String name, @RequestParam("kk") Integer kk);

    @GetMapping("/dc")
    String dc();
}
